﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Common/Master/FrameMain.Master" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="Jzy.Web.WorkFlow.Design.List" %>
<%@ Register Src="../../Common/Controls/Footer.ascx" TagName="Footer" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="toolbar">
        <ul>
            <li style="width:85px;"><a id="lnkAdd" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/addnew.gif);">
                &nbsp;</b><asp:Literal ID="Literal1" runat="server" Text="新增流程"></asp:Literal></span></a></li>
            <li><a id="lnkDelete" runat="server" href="javascript:go()"><span><b style="background-image: url(../../common/images/icons/DELETE.gif);">
                &nbsp;</b><asp:Literal ID="Literal4" runat="server" Text="删除"></asp:Literal></span></a></li>
        </ul>
    </div>
    <div id="head">
        <div class="left">   
            <asp:Label ID="Label1" runat="server" Text="工作流列表" Font-Bold="true"></asp:Label>        
        </div>        
    </div>   
    <div id="list">
        <asp:HiddenField ID="hidSelectIDs" runat="server" Value="" />
        <table id="lvList" cellpadding="0" cellspacing="0" border="0" width="100%">
            <tr id="lvHeader" runat="server">
                <th class="sp">
                    &nbsp;
                </th>
                <th class="chk">
                    <asp:CheckBox ID="chkSelectAll" runat="server" />
                </th>
                <th>
                    流程名称
                </th>
                <th>
                    流程类型
                </th>
                <th>
                    驱动方式
                </th> 
                <th>当前状态</th>
                <th>
                    描述
                </th>              
                <th style="width:80px; text-align:center;" nowrap="nowrap">
                    操作
                    </th>
            </tr>
            <asp:ListView ID="lv" runat="server" ItemPlaceholderID="items" 
                onitemdatabound="lv_ItemDataBound">
                <LayoutTemplate>
                    <tr id="items" runat="server">
                    </tr>
                </LayoutTemplate>
                <ItemTemplate>
                    <tr id="row" runat="server">
                        <td class="sp">
                            &nbsp;
                        </td>
                        <td class="chk">
                            <asp:CheckBox ID="chkSelect" runat="server" />
                        </td>                        
                        
                        <td>
                            <%#Eval("Name") %>&nbsp;
                        </td>
                        <td>
                            <%#Eval("TypeName") %></td>
                        <td>
                            <%#(Jzy.Workflow.Flow.DriveMode)(int)Eval("DriveMode") %>&nbsp;
                        </td>
                        <td>
                            <%#(Jzy.Workflow.Flow.FlowState)(int)Eval("State") %>
                        </td>
                        <td>
                            <%#Eval("Remark") %>&nbsp;
                        </td>                      
                        <td style="text-align:center;">
                            <asp:HyperLink ID="lnkEdit" runat="server">修改</asp:HyperLink>
                        </td>
                    </tr>
                    
                </ItemTemplate>
                <EmptyDataTemplate>
                    <tr>
                        <td colspan="7" class="empty">
                            没有数据
                        </td>
                    </tr>
                </EmptyDataTemplate>
            </asp:ListView>
        </table>
    </div>
    <uc1:Footer ID="Footer1" runat="server" />
    <div id="toolbar_bottom">
        <asp:Button ID="btnDelete" runat="server" Text="删除" OnClick="btnDelete_Click" CausesValidation="False" />
        <asp:Button ID="btnRefresh" runat="server" Text="刷新" OnClick="btnRefresh_Click" />
    </div>
</asp:Content>
